package com.zbkj.common.model.city;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 城市区域表
 * </p>
 *
 * @author HZW
 * @since 2022-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_city_region")
@ApiModel(value = "CityRegion对象", description = "城市区域表")
public class CityRegion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域id")
    private Integer regionId;

    @ApiModelProperty(value = "父区域id")
    private Integer parentId;

    @ApiModelProperty(value = "区域名称")
    private String regionName;

    @ApiModelProperty(value = "区域类型，0-国家、1-省、2-市、3-区、4-街道")
    private Integer regionType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "区域id")
    private String disId;

    @ApiModelProperty(value = "区域名称")
    private String name;

    @ApiModelProperty(value = "区域类型，0-国家、1-省、2-市、3-区、4-街道")
    private Integer level;

    @ApiModelProperty(value = "省Id")
    private String provinceId;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市id")
    private String cityId;

    @ApiModelProperty(value = "市名称")
    private String cityName;

    @ApiModelProperty(value = "区/县id")
    private String districtId;

    @ApiModelProperty(value = "区/县名称")
    private String districtName;

    @ApiModelProperty(value = "镇/街道id")
    private String townId;

    @ApiModelProperty(value = "镇/街道名称")
    private String townName;

    @ApiModelProperty(value = "区域名称全路径")
    private String fullName;

    @ApiModelProperty("区域id全路径")
    private String fullDisId;


    @ApiModelProperty("上级disId")
    private String parentDisId;
}
